package com.sichard.waterfullview.request;


import com.sichard.waterfullview.common.mvp.IModel;
import com.sichard.waterfullview.common.mvp.IView;
import com.sichard.waterfullview.request.model.RequestModel;
import com.sichard.waterfullview.request.data.WaterfallEntity;

import java.util.List;

/**
 * <br>类表述：业务约束类，单个页面的接口统一放在该约束类中，方便查看
 * <br>详细描述：
 * <br><b>Author Caoshichao </b></br>
 * <br><b>Date  2020/4/15</b></br>
 */
public interface RequestContract {
    interface View extends IView {

        void requestWaterfallData();

        void showResult(List<WaterfallEntity.HitsEntity> result);

        void showError(String errMsg);
    }

    interface Model extends IModel {
        void requestWaterfallData(RequestModel.ResponseCallback callback);
    }

    interface IPresenter {
        void requestWaterfallData();
    }

}
